package com.techsoul.module.system.enmus;

public enum UserType {

    lift("叉车驾驶员", "叉车驾驶员", "叉车驾驶员", "叉车驾驶员"),
    pick("理货员", "理货员", "理货员", "理货员"),
    driver("驾驶员", "驾驶员", "驾驶员", "驾驶员"),
    asistantt("料账", "料账", "料账", "料账"),
    accountant("财务", "财务", "财务", "财务");

    private final String eventCode;
    private final String eventName;
    private final String status;
    private final String statusName;

    UserType(String eventCode, String eventName, String status, String statusName) {
        this.eventCode = eventCode;
        this.eventName = eventName;
        this.status = status;
        this.statusName = statusName;
    }

    public String getEventCode() {
        return eventCode;
    }

    public String getEventName() {
        return eventName;
    }

    public String getStatus() {
        return status;
    }

    public String getStatusName() {
        return statusName;
    }

    public static UserType getEventEnum(String eventCode) {
        for (UserType bean : UserType.values()) {
            if (bean.getEventCode().equals(eventCode)) {
                return bean;
            }
        }
        return null;
    }
}

